extends CanvasLayer

@onready var anim_player = $AnimationPlayer
func _ready() -> void:
	
	$GuBab/VBoxContainer/formatItem1.pressed.connect(_open_detail)
	$DiKuang/CloseButton.pressed.connect(_close_detail)

func _open_detail():
	
	anim_player.play("move_in")
	$GuBab/VBoxContainer/formatItem1.disabled = true
	
func _close_detail():
	anim_player.play("move_out")
	$GuBab/VBoxContainer/formatItem1.disabled = false
